﻿<li>
    <table>
        <tr>
            <td class="border {{if isReopen}}wiListReopen{{else}}wiList${State}HighLight{{/if}}">{{if IsBug}}
                <img alt="bug" src="@Url.Content("~/Content/img/bug.png")" border="0" />
                {{/if}}
            </td>
            <td>
                <h4>
                    <a href='@Url.Action("Project", "Config")/${ProjectID}'>${ProjectName}</a> | ${Area}
                </h4>
                <div id="title_${ID}" class="edit title">
                    ${Name}
                </div>
                <div id="description_${ID}" class="editarea">
                    {{html Description}}
                </div>
                <div>
                    <b>${ID}</b> | ${Sprint} |
                    <abbr class='timeago' title='${ISO8601Date}'>
                        ${LastModifiedDate}</abbr>
                    | <a href='TaskDetails/${ID}'>Details </a>
                    | <a href='#' onclick="return showMove(${ID});">Change </a>
                </div>
            </td>
            <td class="ui-corner-all tdscore">
                <p class="pZero scorefont">
                    Score
                </p>
                <p class="pZeroBigFont">
                    {{if Score>=0}} ${Score} {{else}}<span class="SmallFont">not set</span>{{/if}}
                </p>
            </td>
            <td class="tdaction">
                <div style="width: 100%">
                    <a class="MetroButton action setScore" title="Set score" href="#" data-id="${ID}" data-score="${Score}">
                        <img src="@Url.Content("~/Content/img/settings24.png")" alt="Set score"/></a>
                    </a>{{if ActionToDo}} <a class="MetroButton action taskAction" data-id="${ID}" data-type="0" style="float: left; margin-left: 0px;" title="I take it">
                        <img src="@Url.Content("~/Content/img/favs24.png")" alt="I take it"/>
                    </a>{{/if}} {{if AssignedToMe}} <a class="MetroButton action taskAction" data-id="${ID}" data-type="2" style="float: left; margin-left: 0px;" title="I give up">
                        <img src="@Url.Content("~/Content/img/cancel24.png")" alt="I give up"/></a>
                    {{if ActionInProgress}} <a class="MetroButton action taskAction" data-id="${ID}" data-type="1" style="float: left; margin-left: 0px;" title="Done">
                        <img src="@Url.Content("~/Content/img/check24.png")" alt="Done"/></a> {{/if}}
                    {{/if}}
                </div>
                {{if AssignedToID!=null}} <a class="assigned" href='@Url.Action("UserView", "Home")/${AssignedToID}'>
                    <span style="">Assigned to</span><br />
                    <img alt="${AssignedTo}" src="@Url.Action("ShowPhoto32", "AsyncData")/${AssignedToID}" border="0" />
                    ${AssignedTo}</a> {{/if}}
            </td>
        </tr>
    </table>
</li>
